-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/project wip #92
base: main
Are you sure you want to change the base?
Conversation
| { | ||
| return view('project.index', []); | ||
| $user = Auth::user(); | ||
| $allProjects = $this->getAllProjectsUseCase->invoke($user->id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpstan] reported by reviewdog 🐶
Cannot access property $id on App\Models\User|null.
|
|
||
| final class GetProjectUseCase | ||
| { | ||
| public function invoke( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpstan] reported by reviewdog 🐶
Method App\UseCases\Project\GetProjectUseCase::invoke() has no return type specified.
| ): Project { | ||
| $project = Project::find($projectId); | ||
|
|
||
| return $project; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[phpstan] reported by reviewdog 🐶
Method App\UseCases\Project\GetProjectUseCase::invoke() should return App\Models\Project but returns App\Models\Project|null.
|
ありがとうございます!!! |
|
Usecaseの参考としt!! |
草庵みたいなこーど。全然かけてないです 😢